package com.astn.entity.booking;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

public class QuoteMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final int NEW_REQUEST = 0;
	public static final int NEW_OFFER = 1;
	public static final int OFFER_BOOKED = 2;
	public static final int OFFER_FAIL = 3;
	public static final int NORMAL_MESSAGE = -1;
	private int id;
	private int from;
	private String fromname;
	private int messagetype;
	private Date sendat;
	private String subject;
	private String content;
	private Map<String, Object> tag;

	public QuoteMessage() {

	}

	public QuoteMessage(int id, int from, String fromname, int messagetype,
			Date sendat, String subject, String content) {
		this.content = content;
		this.from = from;
		this.fromname = fromname;
		this.id = id;
		this.messagetype = messagetype;
		this.sendat = sendat;
		this.subject = subject;

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getFrom() {
		return from;
	}

	public void setFrom(int from) {
		this.from = from;
	}

	public String getFromname() {
		return fromname;
	}

	public void setFromname(String fromname) {
		this.fromname = fromname;
	}

	public int getMessagetype() {
		return messagetype;
	}

	public void setMessagetype(int messagetype) {
		this.messagetype = messagetype;
	}

	public Date getSendat() {
		return sendat;
	}

	public void setSendat(Date sendat) {
		this.sendat = sendat;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Map<String, Object> getTag() {
		return tag;
	}

	public void setTag(Map<String, Object> tag) {
		this.tag = tag;
	}

}
